#define _CRT_SECURE_NO_WARNINGS 1
#include"list.h"

void testListNode()
{
	ListNode* phead = NULL;
	//ListInit(&phead);
	phead = ListInit(phead);
	ListPushBack(phead, 1);
	ListPushBack(phead, 2);
	ListPushBack(phead, 3);
	ListPushBack(phead, 4);
	ListPushFront(phead,5);
	ListPushFront(phead,6);
	ListPushFront(phead,7);
	ListPushFront(phead,8);
	ListPrint(phead);



	ListNode* pos = ListFind(phead, 4);
	ListInsert(pos, 10);
	ListInsert(pos, 10);
	ListInsert(pos, 10);
	ListPrint(phead);

	ListClear(phead);
	ListPrint(phead);


}


int main()
{
	testListNode();
	return 0;
}